// 收藏项类型
export interface FavoriteItem {
  id: string
  categoryId: string
  categoryName?: string
  title: string
  description?: string
  content?: string
  url?: string
  imageUrl?: string
  tags?: string[]
  type: FavoriteType
  source?: string
  isFavorite: boolean
  viewCount: number
  createdAt: string
  updatedAt: string
}

// 收藏类型枚举
export enum FavoriteType {
  TEXT = 'text',    // 文本/佳句
  LINK = 'link',    // 链接
  IMAGE = 'image',  // 图片
  VIDEO = 'video'   // 视频
}

// 创建收藏项请求
export interface CreateFavoriteItemRequest {
  categoryId?: string
  title?: string
  content?: string
  url?: string
  imageUrl?: string
  tags?: string[]
  type: FavoriteType
  source?: string
}

// 更新收藏项请求
export interface UpdateFavoriteItemRequest {
  categoryId?: string
  title?: string
  content?: string
  url?: string
  imageUrl?: string
  tags?: string[]
  type?: FavoriteType
  source?: string
  isFavorite?: boolean
}

// 收藏项查询参数
export interface FavoriteItemQuery {
  categoryId?: string
  type?: FavoriteType
  keyword?: string
  isFavorite?: boolean
}

// 分页响应
export interface PageResponse<T> {
  records: T[]
  total: number
  size: number
  current: number
  pages: number
}